package com.ares.stude.controller;

import com.ares.aler.entiy.NavPo;
import com.ares.aler.service.NavDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
public class laiyuiDemon {

    @Autowired
    NavDao navDao ;
    @RequestMapping("layuiDemon")
    public String layuiDemon(){
        return "layuiDemon/layuiDemon";
    }

    @RequestMapping("layuiTableDemon")
    public String layuiTableDemon(){
        return "layuiDemon/layuiTableDemon";
    }

    @RequestMapping("layuiTest")
    public String layuiTest(){
        return "layuiDemon/layuiTest";
    }

    @RequestMapping("layuiDemonNav")
    public String layuiDemonNav(Model model){
        List<NavPo> navPoList = navDao.selectall();
        model.addAttribute("list", navPoList);
        return "layuiDemon/layuiDemonNav";
    }

    @RequestMapping("layuiDemonForm")
    public String layuiDemonForm(){
        return "layuiDemon/layuiDemonForm";
    }

    @RequestMapping("layUiTableExDemon")
    public String layUiTableExDemon(){
        return "layuiDemon/layUiTableExDemon";
    }
}
